﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace CDH_Shop.Models.Car
{
    /// <summary>
    /// 获取购物车响应类
    /// </summary>
    public class GetCarsResponse
    {
        //购物车商品列表（商品标题、商品图片、商品Id,购物车商品数量）购物车价格总额
        public List<CarGood> List { get; set; }
        /// <summary>
        /// 价格总额
        /// </summary>
        public decimal TotalPrice { get; set; }
    }

    public class CarGood
    {
        //商品标题、商品图片、商品Id,购物车商品数量
        public string GoodName { get; set; }
        /// <summary>
        /// 封面图
        /// </summary>
        public string GoodCover { get; set; }
        /// <summary>
        /// 商品id
        /// </summary>
        public int GoodId { get; set; }
        /// <summary>
        /// 购物车数量
        /// </summary>
        public int Count { get; set; }
        public decimal Price { get; set; }
    }
}
